package middlewares

import (
	"github.com/gin-gonic/gin"
	"github.com/gorilla/csrf"
)

func CsrfTokenMiddleware() gin.HandlerFunc {
	return func(ctx *gin.Context) {
		ctx.Header("X-CSRF-Token", csrf.Token(ctx.Request))
	}
}
